package prototypePattern;

public class WeeklyLog implements Cloneable{
	public Attachment Attachment;
	public String Name;
	public java.util.Date Date;
	public String Content;
	public Attachment getAttachment() {
		return Attachment;
	}
	public void setAttachment(Attachment attachment) {
		Attachment = attachment;
	}
	public String getName() {
		return Name;
	}
	public void setName(String name) {
		Name = name;
	}
	
	public java.util.Date getDate() {
		return Date;
	}
	public void setDate(java.util.Date date) {
		Date = date;
	}
	public String getContent() {
		return Content;
	}
	public void setContent(String content) {
		Content = content;
	}
	public WeeklyLog Clone() {
		WeeklyLog wl = null;
		try {
			wl = (WeeklyLog)super.clone();
			wl.Attachment=new Attachment();
			Attachment.getName();
			wl.Name=new String(Name);
			wl.Date=new java.util.Date();
			wl.Content=new String(Content);
		}catch (CloneNotSupportedException e) {
			e.printStackTrace();
		}
		return wl;
		
	}

}
